#-------------------------------------------------------------------------------
# Name:        ciz compress
# Purpose:     ??
#
# Author:      Lotte
#
# Created:     10/08/2012
# Copyright:   (c) Lotte 2012
# Licence:     <your licence>
#-------------------------------------------------------------------------------

import os,sys

compresser = "f:/code/python/exe/cisinstallmaker.exe"

def main():
    try:
        if len(sys.argv) < 2 :
            print "param error"
            sys.exit()

        cizfile = sys.argv[1]
        print "ciz file:" + cizfile
        print "current path:" + os.path.abspath(os.curdir)

        if os.path.exists(cizfile) == False:
            print "file not exist:" + cizfile
            sys.exit()

        for
        os.system(compresser + " -fl " + cizfile + " ./cizout")

    except :
        print sys.exc_info()[0],sys.exc_info()[1]
        sys.exit()

if __name__ == '__main__':
    main()
